package com.ruoyi.zsyh.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zsyh.mapper.ZsyhPersonOrderMoneyMapper;
import com.ruoyi.zsyh.domain.ZsyhPersonOrderMoney;
import com.ruoyi.zsyh.service.IZsyhPersonOrderMoneyService;
import com.ruoyi.common.core.text.Convert;

/**
 * 扫码单服务费Service业务层处理
 * 
 * @author yuexl
 * @date 2024-08-22
 */
@Service
public class ZsyhPersonOrderMoneyServiceImpl implements IZsyhPersonOrderMoneyService 
{
    @Autowired
    private ZsyhPersonOrderMoneyMapper zsyhPersonOrderMoneyMapper;

    /**
     * 查询扫码单服务费
     * 
     * @param id 扫码单服务费ID
     * @return 扫码单服务费
     */
    @Override
    public ZsyhPersonOrderMoney selectZsyhPersonOrderMoneyById(String id)
    {
        return zsyhPersonOrderMoneyMapper.selectZsyhPersonOrderMoneyById(id);
    }

    /**
     * 查询扫码单服务费列表
     * 
     * @param zsyhPersonOrderMoney 扫码单服务费
     * @return 扫码单服务费
     */
    @Override
    public List<ZsyhPersonOrderMoney> selectZsyhPersonOrderMoneyList(ZsyhPersonOrderMoney zsyhPersonOrderMoney)
    {
        return zsyhPersonOrderMoneyMapper.selectZsyhPersonOrderMoneyList(zsyhPersonOrderMoney);
    }

    /**
     * 新增扫码单服务费
     * 
     * @param zsyhPersonOrderMoney 扫码单服务费
     * @return 结果
     */
    @Override
    public int insertZsyhPersonOrderMoney(ZsyhPersonOrderMoney zsyhPersonOrderMoney)
    {
        zsyhPersonOrderMoney.setCreateTime(DateUtils.getNowDate());
        return zsyhPersonOrderMoneyMapper.insertZsyhPersonOrderMoney(zsyhPersonOrderMoney);
    }

    /**
     * 修改扫码单服务费
     * 
     * @param zsyhPersonOrderMoney 扫码单服务费
     * @return 结果
     */
    @Override
    public int updateZsyhPersonOrderMoney(ZsyhPersonOrderMoney zsyhPersonOrderMoney)
    {
        zsyhPersonOrderMoney.setUpdateTime(DateUtils.getNowDate());
        return zsyhPersonOrderMoneyMapper.updateZsyhPersonOrderMoney(zsyhPersonOrderMoney);
    }

    /**
     * 删除扫码单服务费对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZsyhPersonOrderMoneyByIds(String ids)
    {
        return zsyhPersonOrderMoneyMapper.deleteZsyhPersonOrderMoneyByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除扫码单服务费信息
     * 
     * @param id 扫码单服务费ID
     * @return 结果
     */
    @Override
    public int deleteZsyhPersonOrderMoneyById(String id)
    {
        return zsyhPersonOrderMoneyMapper.deleteZsyhPersonOrderMoneyById(id);
    }
}
